﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreHelper.Validation.Validators
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
    public class EmailValidatorAttribute : RegexValidatorAttribute
    {
        

        public EmailValidatorAttribute() : this(ValidationUtils.Messages.Email)
        {
        }

        public EmailValidatorAttribute(string errorMessage) : base(ValidationUtils.RegexPatterns.Email, errorMessage)
        {
        }
    }
}
